package com.cy.store.service;


import com.cy.store.entity.User;

import java.util.Date;

public interface IUserService {

    //用户注册
    void reg(User user);
    //用户登录
    User login(String username,String password);

    //用户更新密码
    void changePassword(Integer uid,String username, String newPassword, String oldPassword);

    //根据uid查询用户
    User getByUid(Integer uid);

    //根据uid修改用户
    void updateInfo(Integer uid, String username , User user);

    /**
     * 修改用户头像
     * @param uid
     * @param avatar
     * @param username
     */
    void changeAvatar(Integer uid,String avatar,String username);
}
